/**
 * @file		driverProgram.cpp
 * @description		This application is a driver program that tests the 
 *			getSubsAndTorpedoes function.
 * @course		CSCI 123 Section 00000
 * @assignment		Sample 7
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
#include <cctype>
using namespace std;

/**
 * Expects the user to input integer values for submarines and 
 * torpedoes. This function doesn't prompt the user for input.
 * 
 * @param	aSubmarines the variable for submarines
 * @param	aTorpedoes the variable for torpedoes
 * @pre		submarines and torpedoes have been declared
 * @post	submarines and torpedoes have been set by the user
 */
void getSubsAndTorpedoes(int& aSubmarines, int& aTorpedoes);

/**
 * @return zero if the application executes successfully
 */
int main() {
	int submarines 		= 0;
	int torpedoes 		= 0;
	int depthCharges 	= 10;
	char again 		= 'Y';

	while(toupper(again) != 'N') {
		cout << "Type integers for subs and torpedoes\n";
		getSubsAndTorpedoes(submarines, torpedoes);
		cout << "Subs set by the user " << submarines << endl;
		cout << "Torpedoes set by the user " << torpedoes << endl;
		cout << "Would you like to continue?\n";
		cout << "Y for yes and N for no\n";
		cin >> again;
	}
	return 0;
}

void getSubsAndTorpedoes(int& aSubmarines, int& aTorpedoes) {
	cin >> aSubmarines;
	cin >> aTorpedoes;
	cout << "You have typed ";
	cout << aSubmarines << " submarines and ";
	cout << aTorpedoes << " torpedoes\n";
}
